import '@/assets/css/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'element-plus/dist/index.css'
import App from './App.vue'
import router from './router'
import '@/icons/iconfont/iconfont'
import 'default-passive-events'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
const app = createApp(App)

// element plus图标 全局注册
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
	app.component(key, component)
}
app.use(createPinia())
app.use(ElementPlus,{
  locale: zhCn
})
app.use(router)

app.mount('#app')
